<?php 
class Audio extends Model{

	private $tab_name="xdf_audio";
	private $fields=array("id","name");
	public function addAudio($name,$time) {
		$sql="INSERT INTO `$this->tab_name` (`name`,`time`) VALUES('$name','$time')";
		return $this->_db->insert($sql);
	}
	public function getAudioById($audio_id){
		$sql="SELECT * FROM `xdf_audio` WHERE `id`='$audio_id'";
		return $this->fetchRow($sql);
	}
}
?>